package com.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.entity.*;
import com.entity.User;
import com.entity.pageBean;

import java.util.List;
import java.util.Map;

public interface UserService extends IService<User> {
    String login(User user);

    String register(User user);

    User info(String mobile);

    String update(User user);

    String hasRegister(String mobile) throws Exception;

    public boolean sendMsm(String phone);

    public String updateP(String GID, String TID, String PDATE);

    public List<Map<String,Object>> PInfo(String uname);

    //查询全部数据
    pageBean getAllGround(int pageNum, int pageSize);

    //    List<Ground> search(SearchParms searchParms);
    pageBean search(String cCampus, String cType, int pageNum, int pageSize);

    pageBean searchByType(String cType, int pageNum, int pageSize);

    pageBean searchByCampus(String cCampus, int pageNum, int pageSize);

    // 添加预约记录
    String addPreorder(RuleForm ruleForm, int uid);

    // 找回密码
    String forget(User user);

}
